/**
 *  安全监测 api
 *  @module api/security
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 异常告警
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const openAlarmInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/openAlarmInfo'
})

/**
 * 实时数据
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const realTimeDataOfSafety = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/realTimeDataOfSafety'
})

/**
 * 峰值监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const realTimeDataOfPeak = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/realTimeDataOfPeak'
})

/**
 * 浓度区间
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const realTimeDataOfConcentration = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/realTimeDataOfConcentration'
})